﻿//
// Created by LiuYou on 2021/8/12.
//

#include <stdlib.h>
#include <string.h>
#include "Book.h"


struct Book* getBook(int id, char* name, char* author, double price) {
    struct Book* book = malloc( sizeof( struct Book ));
//    struct Book book = {
//            .id=id,
//            .price=price
//    };
    strcpy( book->name, name );
    strcpy( book->author, author );
    strcpy( book->mainContent, say );
    return book;
}